﻿using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace YYTea.MOdel.Model
{
    public class UserInfo : IdentityUser
    {
        /// <summary>
        /// 头像
        /// </summary>
        public string Image { get; set; }

        //public string Password { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 角色名
        /// </summary>
        //public string RoleName { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        //public string Mobile { get; set; }
        public string Qq { get; set; }
        //性别
        public Sex Sex { get; set; }
        //public virtual ICollection<Order> Orders { get; set; }
        //public ICollection<UserRole> userRoles { get; set; }
        //public ICollection<IdentityRole> Roles { get; set; }
        //public virtual ICollection<IdentityUserRole<string>> UserRoles { get; set; }
        public virtual ICollection<UserRole> UserRoles { get; set; }
        public virtual ICollection<IdentityUserClaim<string>> Claims { get; set; }
        public virtual ICollection<IdentityUserLogin<string>> Logins { get; set; }
        public virtual ICollection<IdentityUserToken<string>> Tokens { get; set; }

    }
    public enum Sex
    {
        男 = 1,
        女 = 0
    }


}
